package com.lagou.pojo;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

/**
 * TODO
 *
 * @author harmony
 * @description 数据库配置实例
 * @date 2020/12/7 21:49
 */
public class Configuration {

    private DataSource dataSource;

    /**
     * key (String) statementId()  sql的唯一标识：namespace.id 来组成 statementId
     */
    Map<String,MappedStatement> map = new HashMap<>();

    public DataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public Map<String, MappedStatement> getMap() {
        return map;
    }

    public void setMap(Map<String, MappedStatement> map) {
        this.map = map;
    }
}
